import {FieldRule} from "@arco-design/web-vue";
// 表单校验
export type FormRule<T extends string = string> = Record<T, FieldRule | FieldRule[]>

// 列表返回
export type ListType<T> = {
    current: number
    pages: number
    size: number
    total: number
    records: T
}
// 列表分页请求参数
export type ListPagination = {
    current: number
    size: number
}

export type OtherChildrenListType = {
    createBy: string
    createTime: string
    description: string
    dictId: string
    id: string
    itemColor: string
    itemText: string
    itemValue: string
    sortOrder: number
    status: number
    updateBy: string
    updateTime: string
}

export type OtherListType = {
    dictCode: string
    dictName: string
    children: OtherChildrenListType[]
}


export type ListRacetrackType = {
    createBy: string
    createTime: string
    delFlag: number
    description: string
    dictCode: string
    dictName: string
    id: string
    type: string
    updateBy: string
    updateTime: string
}